﻿<%@ Page Title="Asah Consulting - Error" Language="C#" MasterPageFile="~/Exception.master" AutoEventWireup="true" CodeFile="Exception.aspx.cs" Inherits="App_Common_Exception" %>

<asp:Content ID="cntHead" runat="server" ContentPlaceHolderID="head">

    <script type="text/javascript">
        function toggleDetails(btn, div) {
            if (div.style.visibility == 'hidden') {
                btn.value = 'Hide Details';
                div.style.visibility = 'visible';
            }
            else {
                btn.value = 'Show Details';
                div.style.visibility = 'hidden';
            }
        }
    </script>

</asp:Content>
<asp:Content ID="cntMain" ContentPlaceHolderID="cphZone1" runat="Server">
    <asp:Label runat="server" ID="lblError" Text="Error"></asp:Label><br />
    <br />
    <table border="0">
        <tr>
            <td align="left">
                <h5>
                    We apologize.&nbsp; An error has occured.<br />
                </h5>
                Please understand that it is not due to your use.<br />
                This site may be experiencing network problems.&nbsp;&nbsp;The error&nbsp;was recorded
                and logged.&nbsp;<br />
                Please try again later.
            </td>
        </tr>
        <tr>
            <td align="right">
                <input id="btnDetails" class="button" type="button" value="View Details" onclick="toggleDetails(this,divDetails);" />
            </td>
        </tr>
        <tr>
            <td align="center">
                <div id="divDetails" name="divDetails" style="visibility: hidden">
                    <asp:TextBox ID="txtErrorDetails" runat="server" Height="56px" TextMode="MultiLine"
                        Width="456px"></asp:TextBox></div>
            </td>
        </tr>
    </table>
</asp:Content>